import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Brand from '@/components/brand'
import BrandEdit from '@/components/brand_edit'

import Factory from '@/components/factory'
import FactoryEdit from '@/components/factory_edit'

import Model from '@/components/model'
import ModelEdit from '@/components/model_edit'

import ModelObject from '@/components/model_object'
import ModelObjectEdit from '@/components/model_object_edit'

import Vin from '@/components/vin'
import VinEdit from '@/components/vin_edit'

import Oil from '@/components/oil'
import OilEdit from '@/components/oil_edit'

import VinLog from '@/components/vin_log'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'brand',
      component: Brand
    }
    ,{
      path: '/brand',
      name: 'brand',
      component: Brand
    }
    ,{
      path: '/brand/:id/edit',
      name: 'brand_edit',
      component: BrandEdit
    }
    ,{
      path: '/factory',
      name: 'factory',
      component: Factory
    }
    ,{
      path: '/factory/:id/edit',
      name: 'factory_edit',
      component: FactoryEdit
    }
    ,{
      path: '/model',
      name: 'model',
      component: Model
    }
    ,{
      path: '/model/:id/edit',
      name: 'model_edit',
      component: ModelEdit
    }
    ,{
      path: '/model_object',
      name: 'model_object',
      component: ModelObject
    }
    ,{
      path: '/model_object/:id/edit',
      name: 'model_object_edit',
      component: ModelObjectEdit
    }
    ,{
      path: '/vin',
      name: 'vin',
      component: Vin
    }
    ,{
      path: '/vin/:vin/edit',
      name: 'vin_edit',
      component: VinEdit
    }
    ,{
      path: '/vin/log',
      name: 'vin_log',
      component: VinLog
    }
    ,{
      path: '/oil',
      name: 'oil',
      component: Oil
    }
    ,{
      path: '/oil/:id/edit',
      name: 'oil_edit',
      component: OilEdit
    }
  ]
})
